package com.hiultra.archive.service;

import java.net.URISyntaxException;
import java.text.ParseException;
import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hiultra.archive.domain.ArchiveStocktakingTask;
import com.hiultra.archive.domain.ArchiveStorageTask;
import com.hiultra.archive.domain.vo.ResultEntity;

/**
 * 盘点任务Service接口
 *
 * @author paidaxing
 * @date 2024-07-31
 */
public interface IArchiveStocktakingTaskService {
    /**
     * 查询盘点任务
     *
     * @param taskId 盘点任务主键
     * @return 盘点任务
     */
    public ArchiveStocktakingTask selectArchiveStocktakingTaskByTaskId(String taskId);

    /**
     * 通过单号查询盘点任务
     *
     * @return 盘点任务
     * @paraminventoryNo 盘点任务单号
     */
    public ArchiveStocktakingTask selectArchiveStocktakingTaskByTaskNo(String inventoryNo);

    /**
     * 查询盘点任务列表
     *
     * @param archiveStocktakingTask 盘点任务
     * @return 盘点任务集合
     */
    public List<ArchiveStocktakingTask> selectArchiveStocktakingTaskList(ArchiveStocktakingTask archiveStocktakingTask) ;

    /**
     * 新增盘点任务
     *
     * @param archiveStocktakingTask 盘点任务
     * @return 结果
     */
    public int insertArchiveStocktakingTask(ArchiveStocktakingTask archiveStocktakingTask);

    /**
     * 修改盘点任务
     *
     * @param archiveStocktakingTask 盘点任务
     * @return 结果
     */
    public int updateArchiveStocktakingTask(ArchiveStocktakingTask archiveStocktakingTask);

    /**
     * 批量删除盘点任务
     *
     * @param taskIds 需要删除的盘点任务主键集合
     * @return 结果
     */
    public int deleteArchiveStocktakingTaskByTaskIds(String[] taskIds);

    /**
     * 删除盘点任务信息
     *
     * @param taskId 盘点任务主键
     * @return 结果
     */
    public int deleteArchiveStocktakingTaskByTaskId(String taskId);

    /**
     * 档案boxName
     */
    public int archiveStocktakingTaskResultReport(ArchiveStocktakingTask archiveStocktakingTask) throws URISyntaxException, JsonProcessingException;

    /**
     * 盘点移位任务下发接口
     *
     * @param data
     * @return 结果
     */
    public ResultEntity insertIssuedArchiveStocktakingTask(String data) throws ParseException;

    /**
     * 定时上报盘点任务
     *
     * @return 结果
     */
    public ResultEntity timingArchiveStocktakingTaskResultReport();


}
